home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / ModalStuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.1 KB  |  48 lines  |  [TEXT/CWIE]

  1. /* ModalStuff.h -- Modal dialog */
  2.  
  3. #pragma once
  4.  
  5. #include "AMDialog.h"
  6. #include "DModalStuffData.h"
  7.  
  8. /*----------*/
  9. Boolean        GetModalStuff    (DModalStuffData*        ioData);
  10.  
  11. //----------
  12. struct ModalStuff {
  13.     AMDialog        super;
  14.  
  15.     DModalStuffData*        mData;
  16.  
  17.     ControlHandle    mOKHandle;
  18.     ControlHandle    mToolsHandle;
  19.     ControlHandle    mPopupsHandle;
  20.     ControlHandle    mFromValuesList2Handle;
  21.     ControlHandle    mFromMenuHandle;
  22.     ControlHandle    mListsHandle;
  23.     ControlHandle    mTextListHandle;
  24. };
  25. typedef struct ModalStuff ModalStuff;
  26.  
  27. //----------
  28. ModalStuff*        NewModalStuff ();
  29. void    DeleteModalStuff        (ModalStuff*        window);
  30.  
  31. //public:
  32. void    ModalStuff_Init        (ModalStuff*    self);
  33. void    ModalStuff_Free        (ModalStuff*    self);
  34.  
  35. //public:
  36. void    ModalStuff_ConnectToData    (ModalStuff*    self,
  37.                                  AMSignaler*    inData);
  38.  
  39. //protected:
  40. void    ModalStuff_FinishMake         (ModalStuff*    self);
  41. void    ModalStuff_DoItem            (ModalStuff*    self,
  42.                                  SInt16        inItemHit);
  43. void    ModalStuff_DataChanged        (ModalStuff*    self,
  44.                                  long        inDataID);
  45. Boolean    ModalStuff_Filter            (ModalStuff*    self,
  46.                                  EventRecord        *ioEvent,
  47.                                  DialogItemIndex    *outItemHit);
  48.